package com.wzy.springcloud.service;

import com.wzy.springcloud.dao.StorageDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class StorageServiceImpl implements StorageService {
    @Resource
    private StorageDao storageDao;

    @Override
    public void decrease(Long productId, Integer count) {
        log.info(">>>>>>>>>>StorageService 扣减库存");
        storageDao.decrease(productId, count);
        log.info(">>>>>>>>>>StorageService 扣减库存,结束");

    }
}
